<template>
<div>
    输入用户名称：<input type="text" ref="base"><br>
    输入用户密码：<input type="password"><br>
    <button>登录</button>
</div>
</template>

<script>
export default {
data(){
return {
   

}

},
 mounted () {
        this.$refs['base'].focus()
    }
}
</script>
<style lang='scss' scoped>

</style>
